package com.lframework.xingyun.basedata.vo.member;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CouponItemVo {
    /**
     * 卡券id
     */
    @NotBlank(message = "卡券id不能为空")
    @ApiModelProperty("卡券id")
    private String couponId;

    @NotNull(message = "卡券数量不能为空")
    @Min(value = 1, message = "卡券数量不能小于1")
    @ApiModelProperty("卡券数量")
    private Integer couponNum;
}
